<?php

Class EducationExperience extends AppModel {

    var $name = 'EducationExperience';
    var $useTable = 'education_experiences';

    /*
     * belongsTo association with other application models
     */
    var $belongsTo = array(
            'Title' => array(
                'className' => 'Title'
            ),
            'Organization' => array(
                'className' => 'Organization'
            ),
            'Person' => array(
                'className' => 'Person'
            ),
            'Position' => array(
                'className' => 'Position'
            )
        );

    var $validate = array(
        'from' => array(
            'rule' => 'notEmpty',
            'message' => 'Questo campo e\' obbligatorio'
        ),
        'to' => array(
            'rule' => 'notEmpty',
            'message' => 'Questo campo e\' obbligatorio'
        ),
        'title_id' => array(
            'rule' => 'notEmpty',
            'message' => 'Questo campo e\' obbligatorio'
        ),
        'organization_id' => array(
            'rule' => 'notEmpty',
            'message' => 'Questo campo e\' obbligatorio'
        ),
        'position_id' => array(
            'rule' => 'notEmpty',
            'message' => 'Questo campo e\' obbligatorio'
        )
    );


}

?>
